//
//  SimpleTest.m
//  SimpleTest
//
//  Created by Ofri Wolfus on 03/03/07.
//  Copyright 2007 Ofri Wolfus. All rights reserved.
//

#import "SimpleTest.h"


@implementation SimpleTest

- (BOOL)testFailure {
	DPAssert(NO, @"Failure!!");
	return NO;
}

- (BOOL)test1 {
	return YES;
}

- (id)testId {
	return @"hello";
}

- (BOOL)verifyTestId:(NSString *)retVal {
	return [retVal isEqualToString:@"hello"];
}

- (void)finishAsyncTest {
	[self setStatus:YES forPendingTest:@"testAsyncTest"];
}

- (void)testAsyncTest {
	[self performSelector:@selector(finishAsyncTest)
			   withObject:nil
			   afterDelay:5.0];
}

@end
